<form action="" method="post">
    <input type="submit" name="sub" value="合并数组">
</form>
<?php
/**
 * Date：2020-12-10 20:08
 * Title: 合并数组
 * Description：
 * Error:
 */
$arr = array('编程'=>'123', 'soft'=>'你好', '456'=>'mingri');
echo "数组1：";
print_r($arr);
echo "<br>";
$arr2 = array('PHP 编程','JAVA', 'C#编程');
echo "数组2：";
print_r($arr2);
echo "<br>";

if ($_POST['sub']) {
    echo "合并后的数组";
    $arrs = array_merge($arr, $arr2);
    print_r($arrs);

}

